<template>
	<view class="navbar">
		<view class="statusBar" :style="{height:statusBarHeight() + 'px'}"></view>
		<view class="titleBar" :style="{height:TitleBarHeight() + 'px'}">
		<view class="search" @click="goSearch">
			<uni-icons class="icon" type="search" color="#888" size="18"></uni-icons>
			<text class="text">搜索</text>
		</view>
		</view>

	</view>
</template>

<script setup>
import { statusBarHeight , TitleBarHeight } from '../../utils/system';
const goSearch = ()=>{
	uni.navigateTo({
		url:'/pages/search/search'
	})
}
</script>

<style lang="scss" scoped>
		.navbar{	
			position: fixed;
			top: 0;
			left: 0;
			// bottom: 10rpx;
			width: 100%;
			z-index: 10;
			// background-color: #84ddff;
			background:linear-gradient(to bottom, #84ddff  , rgba(0, 0, 0, 0));
			height: 10vh;
			
			.search{
				width: 92vw;
				height: 70rpx;
				border-radius: 60rpx;
				// background-color: #84ddff;
				border: 2rpx solid #84ddff;
				background-color: rgba(255,255,255,1);
				// border: 1px solid white;
				padding-left: 25rpx;
				box-sizing: border-box;
				margin-left: 30rpx;
				color: #999;
				font-size: 20rpx;
				display: flex;
				align-items: center;
				line-height: 50rpx;	
				.icon{
					margin-left: 5rpx;
				}
				.text{
					padding-left: 20rpx;
				}
			}
		}
</style>